/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jsysacc.asistencia.model.logic.maestros;

import com.jsysacc.asistencia.model.beans.maestros.Permiso;
import com.jsysacc.asistencia.model.dao.design.maestros.IPermisoDAO;
import com.jsysacc.asistencia.model.dao.factory.MainDAOFactory;
import java.util.ArrayList;

/**
 *
 * @author Carlos
 */
public class PermisoLogic {

    IPermisoDAO permisoDAO = MainDAOFactory.getInstance().getPermisoDAO();

    public PermisoLogic() {
    }



    public boolean deleteAll() throws Exception {
        return permisoDAO.deleteAll();
    }

    public boolean insert(Permiso entity) throws Exception {
        return permisoDAO.insert(entity);
    }

}
